package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the UNIT_PRODUCT_TB database table.
 * 
 */
@Entity
@Table(name="UNIT_PRODUCT_TB")
@NamedQuery(name="UnitProductTb.findAll", query="SELECT u FROM UnitProductTb u")
public class UnitProductTb implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="UNIT_PRODUCT_TB_UNITID_GENERATOR", sequenceName="SEQ_51")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="UNIT_PRODUCT_TB_UNITID_GENERATOR")
	@Column(name="UNIT_ID")
	private String unitId;

	@Column(name="PRODUCT_ID")
	private BigDecimal productId;

	@Column(name="UNIT_NAME")
	private String unitName;

	public UnitProductTb() {
	}

	public String getUnitId() {
		return this.unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public BigDecimal getProductId() {
		return this.productId;
	}

	public void setProductId(BigDecimal productId) {
		this.productId = productId;
	}

	public String getUnitName() {
		return this.unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

}